<template>
  <div class="InputAdd">
    <el-button type="primary" @click="createNode">添加</el-button>
  </div>
</template>

<script>
export default {
  name:"InputAdd",
  data(){
    return{
      num:0
    }
  },
  methods:{
    createNode(){
      this.$parent.addListItem();
    }
  }
}
</script>
<style scoped>
.InputAdd{
  height: 100%;
  width: 100%;
  padding-top: 40%;
  text-align: center;
}
el-button{

}
</style>